<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'educators-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array(
			'enctype' => 'multipart/form-data'
	)
)); ?>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php if(0):?>
	<?php echo $form->textFieldRow($model,'user_id',array('class'=>'span5')); ?>
	<?php endif;?>

	<?php echo $form->radioButtonListRow($profile,'gender',array('1'=>'男','0'=>'女')); ?>
	
	<?php echo $form->fileFieldRow($model,'eduer_cover',array('class'=>'span3')); ?>
	
	<?php echo $form->textFieldRow($model,'eduer_name',array('class'=>'span3')); ?>
	
	<?php $this->Widget('ext.wdcity.WDjQuerycity', array(
	    'model'  => $model,
	    'province' =>'province',  //数据库字段province
	    'city' =>'city',  //数据库字段city
	    'area' =>'area',  //数据库字段area 
	    'provinceValue'=>'',  // province 默认值
	    'cityValue' =>$model->eduer_city,  // city默认值
	    'areaValue'=>$model->eduer_area,  // area默认值
	   // 'provinceOptions' => array(), // province Html Options
	   // 'cityOptions' => array(), // city Html Options
	   // 'areaOptions' => array() // area Html Options
	)); ?>
	
	<?php echo $form->textFieldRow($profile,'email',array('class'=>'span3')); ?>
	
	<?php echo $form->textFieldRow($profile,'realname',array('class'=>'span3')); ?>
	
	<?php echo $form->textFieldRow($model,'eduer_tags',array('class'=>'span3')); ?>
	
	<?php echo $form->textAreaRow($model,'eduer_bio',array('class'=>'span3')); ?>
	
	<?php if(0):?>
	<?php echo $form->textFieldRow($model,'eduer_likes',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'eduer_subscribes',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'eduer_audio_counts',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'dateline',array('class'=>'span5')); ?>
	<?php endif;?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
